package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdNewsMapper;
import com.diankangwo.factory.entity.TdNews;
import com.diankangwo.factory.service.TdNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("tdNewsService")
public class TdNewsServiceImpl implements TdNewsService {

    @Autowired
    private TdNewsMapper tdNewsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdNewsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdNews record) {
        return tdNewsMapper.insert(record);
    }

    @Override
    public int insertSelective(TdNews record) {
        return tdNewsMapper.insertSelective(record);
    }

    @Override
    public TdNews selectByPrimaryKey(Integer id) {
        return tdNewsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdNews record) {
        return tdNewsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdNews record) {
        return tdNewsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdNews> queryList(Map<String, Object> map) {
        return tdNewsMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdNewsMapper.queryTotal(map);
    }
}
